


-define(DEFAULT_MONITOR_LOG ,  "/home/admin/container/log/monitor.log").


-record(runtime,{cpu=0,mem=0,up=0,down=0,pv=0}).

-record(container , {    name,
			 host="localhost" ,
			 ip,
                         port="80" ,
                         type="php" ,
                         home="/home/admin/container"
               %%          ,user="admin",
               %%          password="admin" 
			}).
-record(app, { name , domain , source , target } ).
-record(instance, {container_name , app_name }).
-record(instance_runtime, {instance , runtime=#runtime{} }).
-record(container_runtime, {name ="container1",  runtime=#runtime{} }).
%%-record(container_runtime, {name ="container1",  pid=undefined , runtime=#runtime{} }).
-record(acc_runtime, { cpu ,  up , down,pv }).
-record(agent_state, {id =0 , pid, cpu=0, container}).



-record( httpd_proc , {  port , desc } ).


%%周期累计
-record(term_runtime, {  cpu_time=0, up=0, down=0, pv=0 }) .
-record(app_term_runtime, { app, term_runtime } ).

%%所有累积
-record(total_runtime , { cpu_time=0, up=0,down=0,pv=0 }).
-record(app_total_runtime, { app, total_runtime } ).
